package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.HomeEntity;
import com.xx.baseuilibrary.mvp.BaseMvpView;
import com.xx.baseutilslibrary.network.rx.XxBaseHttpObserver;

/**
 * Created by JacobHHH on 2018/4/20.
 */

public interface HomeContract {

    interface View extends BaseMvpView{

        void setData(HomeEntity homeEntity, boolean isLoadMore);

        void onDataFailure(String msg);
    }

    interface Presenter{
        /**
         * 获取更多数据
         * @param page
         * @param longitude
         * @param latitude
         */
        void loadData(String page,String longitude,String latitude,boolean isLoadMore);
    }

    interface Model{

        void loadData(String page, String longitude, String latitude, XxBaseHttpObserver<HomeEntity> httpObserver);
    }
}
